/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bs.Controllers;

import com.bs.Beans.Empresa;
import com.bs.Forms.EmpresaForm;
import com.bs.extensoesSwing.AbstractGridController;
import com.bs.extensoesSwing.PadraoForm;

/**
 *
 * @author Bone
 */
public class EmpresasController <E> extends AbstractGridController<Empresa>{

    @Override
    public void novo() {
        EmpresaForm f = new EmpresaForm(getEntityManager(), new Empresa());
        f.setVisible(true);
    }

    @Override
    public void alterar() {
        EmpresaForm f = new EmpresaForm(getEntityManager(), new Empresa(), PadraoForm.ALTERAR);
        f.setVisible(true);
    }
    
}
